PWD=$(shell pwd )

CROSSTOOL=/opt/buildroot/arm926t/bin/arm-linux-

LIBNAME=$(shell basename ${PWD} )
TOPDIR=$(shell dirname ${PWD} )

all: distclean
	@${CROSSTOOL}gcc ${CFLAGS} -I${TOPDIR} -c -I ../booster/ -I ../etc/ -L ../booster -lbooster *.c 
	@${CROSSTOOL}ar -rcs  lib${LIBNAME}.a *.o

clean:
	@rm -f *.o

distclean: clean 
	@rm -f *.a

